home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CYBER.XPO.95
/
CYBER.XPO.95 (Arsenal Computer).ISO
/
popreq
/
amiga1
/
amyelmv3.lha
/
c
/
EncryptMsg
< prev
next >
Wrap
AmigaDOS Script File
|
1994-04-16
|
1KB
|
41 lines
.KEY cryptfile/A,cryptmode/A
.BRA {
.KET }
;
; This is just an example...
;
; do something with the message, e.g. encrypt it, and redirect
; input/output to actual screen (Elm's screen) for passwort prompts etc.
; variable {cryptmode} holds encryption-mode
;
If "{cryptmode}" EQ "ENCRYPT"
Echo <>"CON:////IO-Window/CLOSE/AUTO/WAIT/SCREEN`GetActScreen`" Just encrypting {cryptfile} ({cryptmode})
Else
If "{cryptmode}" EQ "SIGN"
Echo <>"CON:////IO-Window/CLOSE/AUTO/WAIT/SCREEN`GetActScreen`" Just signing {cryptfile} ({cryptmode})
Else
If "{cryptmode}" EQ "ENCRYPT+SIGN"
Echo <>"CON:////IO-Window/CLOSE/AUTO/WAIT/SCREEN`GetActScreen`" Encrypting and signing {cryptfile} ({cryptmode})
; we have 3 If's so we need 3 EndIf's
EndIf
EndIf
EndIf
;
Copy <>"CON:////IO-Window/CLOSE/AUTO/WAIT/SCREEN`GetActScreen`" "{cryptfile}" T:encrypt.txt-$process
;
; and now copy the encrypted message back
;
Copy T:encrypt.txt-$process "{cryptfile}"
; get rid of our temporary file
;
Delete T:encrypt.txt-$process QUIET FORCE